import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from './../views/GoodsList'
import Cart from './../views/Cart'
import Address from './../views/Address'
import OrderConfirm from './../views/OrderConfirm'
import OrderSuccess from './../views/OrderSuccess'
import OrderList from './../views/OrderList'
import FeedBackList from './../views/FeedBackList'
import Login from "../views/Login.vue";
import {id} from "html-webpack-plugin/lib/chunksorter";
import PointsExchange from "../views/PointsExchange.vue";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'GoodsList',
      component: GoodsList
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/OrderList',
      name: 'OrderList',
      component: OrderList
    },
    {
      path: '/FeedBackList',
      name: 'FeedBackList',
      component: FeedBackList
    },
    {
      path: '/address',
      name: 'Address',
      component: Address
    },
    {
      path: '/orderConfirm/:way',
      name: 'OrderConfirm',
      component: OrderConfirm
    },
    {
      path: '/orderSuccess/:param',
      name: 'OrderSuccess',
      component: OrderSuccess
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/pointsExchange',
      name: 'PointsExchange',
      component: PointsExchange
    }
  ]
})
